﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="CareerPathProject.Models" %>
<!DOCTYPE html>

<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>homePage</title>
</head>
<body>
    <div>
        <h1>This is home page</h1>
        <table border="1">
            <tr>
                <td>name</td>
                <td>email</td>
            </tr>
          <% foreach ( Candidate can in (List<Candidate>) ViewData["can"]) { %>
                    <tr>
                        <td><%= Html.ActionLink(can.CandidateName,"detail/" +can.CandidateName,"home") %></td>
                        <td> <%= can.Email %></td>
                    </tr>
               <% } %>

            
        </table>
    </div>
</body>
</html>
